package com.it.Demo2;

import java.util.Scanner;

public class Person {
    public String name="匿名";
    public int score=0;
    public int showF(){
        Scanner inp=new Scanner(System.in);
        System.out.println("请输入:1 石头  2 剪刀  3 布 ");
        int num=inp.nextInt();
        if(num==1){
            System.out.println("你"+"("+name+"):出->"+"石头");
        }else if (num==2){
            System.out.println("你"+"("+name+"):出->"+"剪刀");
        }else if (num==3) {
            System.out.println("你"+"("+name+"):出->"+"布");
        }else{
            System.out.println("数据有误！");
        }
        return num;

    }
}
